<html>
	<head>
		<title>WFS Layer</title>
		<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
	   	   		
		<script type="text/javascript" src="../../resources/ext/ext-base.js"></script>
 		<script type="text/javascript" src="../../resources/ext/ext-all.js"></script>
 		
		<script src="http://www.openlayers.org/api/2.9/OpenLayers.js"></script>
		<script type="text/javascript" src="../../config.js"></script>
		<script type="text/javascript" src="../../resources/geoext/script/GeoExt.js"></script>
		<script type="text/javascript" src="../../resources/js/GBIF.GeoSpatial.GeoMapPanel.js"></script>
<!--		
		<script type="text/javascript" src="GBIF.GeoSpatial.WMSDataGridPanel.js"></script>
		<script type="text/javascript" src="featureinfo.js"></script>
-->		 
		<script type="text/javascript">
		Ext.onReady(function() {

		OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

		var wfs = new OpenLayers.Layer.WFS(
				"WFS"
			,	"http://birdlaa2.memset.net:8080/geoserver/wfs"
			,	{
					Filter: "<Filter><PropertyIsEqualTo><PropertyName>spcrecid</PropertyName><Literal>64</Literal></PropertyIsEqualTo></Filter>"
				, TypeName: "birdlife:gtbs"
			}
		);
			
/*				
		var wfs = new OpenLayers.Layer.Vector("64", {
				strategies: [new OpenLayers.Strategy.BBOX()]
			,	protocol: new OpenLayers.Protocol.WFS({
		//      url: "http://www.silverbiology.com/clients/gbif/geospatial/resources/api/getcapabilities-proxy.php?url=http://demo.opengeo.org/geoserver/wfs",
		//     featureType: "states",
		//      featureNS: "http://www.openplans.org/topp"
		
						'url': "http://www.silverbiology.com/clients/gbif/geospatial/resources/api/getcapabilities-proxy.php?url=http://birdlaa2.memset.net:8080/geoserver/wfs"
					,	'featureType': "birdlife:gtbs"
					,	'featureNS':"http://www.opengis.net/wfs"
		//	, 	'querable':false
				})
		});
*/			
		var geomap = new GBIF.GeoSpatial.MapComponent({
				width:800
			,	height:400	
			,	renderTo:Ext.getBody()
		});
		
		geomap.map.addLayer(wfs);
		geomap.map.zoomToExtent(new OpenLayers.Bounds(-140.4, 25.1, -44.4, 50.5));
	
	});
	</script>		
	</head>
	
	<body>
	</body>
</html>